home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gList
- set sum to count(gList)
- if sum then
- set i to random(sum)
- set x to getAt(gList, i)
- deleteAt(gList, i)
- set myLine to line x of field "fortuneText"
- delete char 1 to 3 of myLine
- set name to the text of field "Name"
- set problem to the text of field "Problem"
- revealFortune(name, problem, myLine)
- go("A" & x)
- end if
- end
-